

target("lbmath")
    set_kind("static")
    set_targetdir("../temp_libs")
    add_files("Math/*.c","Matrix/*.c","Matrix/*.cpp","Algorithm/*.c","Algorithm/*.cpp")
    add_includedirs("../include")
    if is_plat("linux") then
        add_ldflags("-no-pie ")
        add_cflags("-fPIC -O3 -ftree-vectorize")
        add_cxflags("-fPIC -O3 -ftree-vectorize")
        add_cxxflags("-fPIC -O3 -ftree-vectorize")
    elseif is_plat("mingw") then
        print("mingw")
        add_ldflags("-no-pie ") 
        add_cxflags("-fPIC -O3 -ftree-vectorize")
        add_cxxflags("-fPIC -O3 -ftree-vectorize")
    else 
        print("not mingw")
        add_cxflags("/MD /O2 ")
        add_cxxflags("/MD /O2 ") 
    end